package com.cha.chaCommon.core.utils;

public class UserUtils {

    private static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();

    public static void setUid(Integer uid) {
        threadLocal.set(uid);
    }

    public static Integer getUid() {
        return threadLocal.get();
    }

    public static void removeUid() {
        threadLocal.remove();
    }
}
